<%@ page language="java" contentType="text/html; charset=gb2312"
    pageEncoding="gb2312"%>

<%@ page import="javax.servlet.http.Cookie" %>    
    
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>EL test</title>
</head>
<body>
    1: ${initParam.emailOfwebmaster} <br>
    2: <%=application.getInitParameter("emailOfwebmaster") %> <br>
	<br>


	<%
		pageContext.setAttribute("username", "Li4", 
				PageContext.SESSION_SCOPE);
		pageContext.setAttribute("username", "zhang3", 
				PageContext.PAGE_SCOPE);
		pageContext.setAttribute("username", "Tom", 
				PageContext.APPLICATION_SCOPE);
	%>
	1: ${username} <br>
	2: ${sessionScope.username} <br>
	<br>
	
	
	<% int name=9; %>
	<%! int name2=8;%>
	66:${name} <br>
	67:${name2} <br>
	
	
	Cookie-name: ${cookie.username.name}<br>
	Cookie-value: ${cookie.username.value}
	
	<%
		Cookie cookie = new Cookie("username", "Tom");
		response.addCookie(cookie);
	%>

</body>
</html>